<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item>
        学习
      </el-breadcrumb-item>
      <el-breadcrumb-item>
        数据结构
      </el-breadcrumb-item>
    </el-breadcrumb>
    <div>
      <el-tag>
        实现列表类
      </el-tag>
    </div>
    <el-table :data="list">
      <el-table-column label="名字">
        <template slot-scope="scope">
          <el-input type="text" v-model="scope.row.name"></el-input>
        </template>
      </el-table-column>
      <el-table-column  label="手机">
        <template slot-scope="scope">
          <el-input type="text" v-model="scope.row.phone"></el-input>
        </template>
      </el-table-column>
    </el-table>
    <div v-for="item in list " :key="item.id">
      <el-input type="text" v-model="item.name"></el-input>
      <el-input type="text" v-model="item.phone"></el-input>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          name: "",
          phone: "",
          id: 0
        }
      ]
    }
  }
}
</script>

<style>

</style>
